package day3;

import com.sun.scenario.effect.impl.sw.sse.SSEBlend_SRC_OUTPeer;

import java.util.Calendar;

/**
 * @author oldliu
 * @since 1.0
 */
public class CalTest2 {
    public static void main(String[] args) {
        Calendar c = Calendar.getInstance();//设置时区返回合适的子类
        System.out.println(c);
        //c.set(Calendar.DAY_OF_MONTH,34);
        //Date d=c.getTime();
        System.out.println(c.getTime());
        //增加一个时间段
        c.roll(Calendar.HOUR,100);
        //c.add(Calendar.HOUR,100);
        System.out.println("100小时后："+c.getTime());
    }
}
